home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsISOAPEncoder.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  126 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISOAPEncoder.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISOAPEncoder_h__
  6. #define __gen_nsISOAPEncoder_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsISchemaType; /* forward declaration */
  18.  
  19. class nsISOAPEncoding; /* forward declaration */
  20.  
  21. class nsIVariant; /* forward declaration */
  22.  
  23. class nsIDOMElement; /* forward declaration */
  24.  
  25. class nsISOAPAttachments; /* forward declaration */
  26.  
  27.  
  28. /* starting interface:    nsISOAPEncoder */
  29. #define NS_ISOAPENCODER_IID_STR "fc33ffd6-1dd1-11b2-8750-fa62430a38b4"
  30.  
  31. #define NS_ISOAPENCODER_IID \
  32.   {0xfc33ffd6, 0x1dd1, 0x11b2, \
  33.     { 0x87, 0x50, 0xfa, 0x62, 0x43, 0x0a, 0x38, 0xb4 }}
  34.  
  35. /**
  36.  * This interface permits encoding of variants.
  37.  */
  38. class NS_NO_VTABLE nsISOAPEncoder : public nsISupports {
  39.  public: 
  40.  
  41.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPENCODER_IID)
  42.  
  43.   /**
  44.    * Encode the source variant.
  45.    *
  46.    * @param aEncodings The encodings to be used.
  47.    *
  48.    * @param aEncodingStyleURI The encoding style
  49.    *
  50.    * @param aSource The variant to be encoded.
  51.    *
  52.    * @param aNamespaceURI The namespace of the thing being coded
  53.    *
  54.    * @param aName The name of the thing being coded
  55.    *
  56.    * @param aSchemaType The schema type of the thing being encoded
  57.    *
  58.    * @param aDestination The node scope, if any, where the result 
  59.    *   will live.  If this is null, then the result must be 
  60.    *   explicitly attached to the message.
  61.    *
  62.    * @return element which was inserted.
  63.    *
  64.    * @param aAttachments Accumulates any attachments.
  65.    */
  66.   /* nsIDOMElement encode (in nsISOAPEncoding aEncoding, in nsIVariant aSource, in AString aNamespaceURI, in AString aName, in nsISchemaType aSchemaType, in nsISOAPAttachments aAttachments, in nsIDOMElement aDestination); */
  67.   NS_IMETHOD Encode(nsISOAPEncoding *aEncoding, nsIVariant *aSource, const nsAString & aNamespaceURI, const nsAString & aName, nsISchemaType *aSchemaType, nsISOAPAttachments *aAttachments, nsIDOMElement *aDestination, nsIDOMElement **_retval) = 0;
  68.  
  69. };
  70.  
  71. /* Use this macro when declaring classes that implement this interface. */
  72. #define NS_DECL_NSISOAPENCODER \
  73.   NS_IMETHOD Encode(nsISOAPEncoding *aEncoding, nsIVariant *aSource, const nsAString & aNamespaceURI, const nsAString & aName, nsISchemaType *aSchemaType, nsISOAPAttachments *aAttachments, nsIDOMElement *aDestination, nsIDOMElement **_retval); 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  76. #define NS_FORWARD_NSISOAPENCODER(_to) \
  77.   NS_IMETHOD Encode(nsISOAPEncoding *aEncoding, nsIVariant *aSource, const nsAString & aNamespaceURI, const nsAString & aName, nsISchemaType *aSchemaType, nsISOAPAttachments *aAttachments, nsIDOMElement *aDestination, nsIDOMElement **_retval) { return _to Encode(aEncoding, aSource, aNamespaceURI, aName, aSchemaType, aAttachments, aDestination, _retval); } 
  78.  
  79. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  80. #define NS_FORWARD_SAFE_NSISOAPENCODER(_to) \
  81.   NS_IMETHOD Encode(nsISOAPEncoding *aEncoding, nsIVariant *aSource, const nsAString & aNamespaceURI, const nsAString & aName, nsISchemaType *aSchemaType, nsISOAPAttachments *aAttachments, nsIDOMElement *aDestination, nsIDOMElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Encode(aEncoding, aSource, aNamespaceURI, aName, aSchemaType, aAttachments, aDestination, _retval); } 
  82.  
  83. #if 0
  84. /* Use the code below as a template for the implementation class for this interface. */
  85.  
  86. /* Header file */
  87. class nsSOAPEncoder : public nsISOAPEncoder
  88. {
  89. public:
  90.   NS_DECL_ISUPPORTS
  91.   NS_DECL_NSISOAPENCODER
  92.  
  93.   nsSOAPEncoder();
  94.  
  95. private:
  96.   ~nsSOAPEncoder();
  97.  
  98. protected:
  99.   /* additional members */
  100. };
  101.  
  102. /* Implementation file */
  103. NS_IMPL_ISUPPORTS1(nsSOAPEncoder, nsISOAPEncoder)
  104.  
  105. nsSOAPEncoder::nsSOAPEncoder()
  106. {
  107.   /* member initializers and constructor code */
  108. }
  109.  
  110. nsSOAPEncoder::~nsSOAPEncoder()
  111. {
  112.   /* destructor code */
  113. }
  114.  
  115. /* nsIDOMElement encode (in nsISOAPEncoding aEncoding, in nsIVariant aSource, in AString aNamespaceURI, in AString aName, in nsISchemaType aSchemaType, in nsISOAPAttachments aAttachments, in nsIDOMElement aDestination); */
  116. NS_IMETHODIMP nsSOAPEncoder::Encode(nsISOAPEncoding *aEncoding, nsIVariant *aSource, const nsAString & aNamespaceURI, const nsAString & aName, nsISchemaType *aSchemaType, nsISOAPAttachments *aAttachments, nsIDOMElement *aDestination, nsIDOMElement **_retval)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124.  
  125. #endif /* __gen_nsISOAPEncoder_h__ */
  126.